package com.zmn.uac.common.constant;

/**
 * 类描述：钉钉配置
 *
 * @author xujie
 * @since 2021/05/19 16:26
 */
public class DingTalkConstant {

    /**
     * 创建应用，验证回调URL创建有效事件（第一次保存回调URL之前）
     */
    public static final String EVENT_CHECK_CREATE_SUITE_URL = "check_create_suite_url";

    /**
     * 创建应用，验证回调URL变更有效事件（第一次保存回调URL之后）
     */
    public static final String EVENT_CHECK_UPADTE_SUITE_URL = "check_update_suite_url";

    /**
     * suite_ticket推送事件
     */
    public static final String EVENT_SUITE_TICKET = "suite_ticket";

    /**
     * 企业授权开通应用事件
     */
    public static final String EVENT_TMP_AUTH_CODE = "tmp_auth_code";

    /**
     * 返回码
     */
    public static final String ERR_MSG = "errmsg";

    /**
     * 返回码
     */
    public static final String ERR_CODE = "errcode";

    /**
     * 用户信息
     */
    public static final String USER_INFO = "user_info";

    /**
     * 临时授权码获取授权用户的个人信息
     */
    public static final String GET_USER_INFO_BY_CODE = "https://oapi.dingtalk.com/sns/getuserinfo_bycode";

    public static final String SUITE_ID = "16869001";

    public static final String APP_ID = "70726";

    public final static String DING_TALK_GET_TOKEN_URL = "https://oapi.dingtalk.com/service/get_corp_token";

    public static final String GET_USER_INFO = "https://oapi.dingtalk.com/topapi/v2/user/getuserinfo";

    /**
     * 应用的SuiteKey，登录开发者后台，点击应用管理，进入应用详情可见
     */
    public static final String SUITE_KEY = "suiteglyqencq31bkdeuw";

    /**
     * 应用的SuiteSecret，登录开发者后台，点击应用管理，进入应用详情可见
     */
    public static final String SUITE_SECRET = "7NVTZ51Fc7GL7qe2jA1m5iYJGach6fkwxW3KQTWtvX7nqMWPV4FdFJC4VU6JX-ss";

    /**
     * 回调URL签名用。应用的签名Token, 登录开发者后台，点击应用管理，进入应用详情可见
     */
    public static final String TOKEN = "prod";

    /**
     * 回调URL加解密用。应用的"数据加密密钥"，登录开发者后台，点击应用管理，进入应用详情可见
     */
    public static final String ENCODING_AES_KEY = "m19v0lepxgogdoi6h8k6idw0fequg78mya9n8qikuuf";

    /**
     * 根据userid获取用户详情
     */
    public static final String USER_ID_BY_DETAILED_URL = "https://oapi.dingtalk.com/topapi/v2/user/get";

    /**
     * prod suiteTicket
     */
    public static final String PROD_SUITE_TICKET_URL = "https://api-uac.xiujiadian.com/ding/getSuiteTicket";

    public static final String LANGUAGE = "zh_CN";
}
